package study10.reflect;

/**
 * @author zerorain
 * @date 2022/03/24 19:01
 **/
public class Person {
    private String personName;
    public int personAge;
    public Person() {
        System.out.println("Person的无参构造");
    }

    private Person(String personName) {
        System.out.println("Person的有参构造");
        this.personName = personName;
    }

    private void test() {
        System.out.println("Person的test方法，private权限");
    }

    public void testPerson() {
        System.out.println("Person的testPerson方法，public权限");
    }
}